package com.yukefms.rule.formula;

import com.yukefms.engine.running.RunningContext;
import com.yukefms.engine.running.MatchedStatus;
import com.yukefms.jointpoint.BodyPointCloud;
import com.yukefms.rule.formula.interfaces.AbstractStaticBAFormula;
import com.yukefms.rule.formula.interfaces.DynamicBAFormula;
import com.yukefms.rule.formula.interfaces.StaticBAFormula;

/**
 * @Description
 * @Author Ping
 * @Date 2021/6/16 1:01
 **/
public class InvariantBAFormula extends AbstractStaticBAFormula implements DynamicBAFormula {

    private StaticBAFormula formula ;

    public InvariantBAFormula(final StaticBAFormula formula) {
        this.formula = formula;
    }

    public void setStaticBAFormula(StaticBAFormula formula) {
        this.formula = formula ;
    }

    public StaticBAFormula getStaticBAFormula() {
        return this.formula;
    }

    @Override
    public MatchedStatus matched(BodyPointCloud bodyPointCloud, RunningContext context) {
        return formula.matched(bodyPointCloud, context);
    }




}
